<?php
    $title = 'บริษัท แบคอัพ คอมมิวนิเคชั่นส์ แอนด์ เซอร์วิสเซส จำกัด';
    include('header.php');
    
    $sql = 'SELECT staff_img , staff_name_'.$_SESSION['lang'].' AS staff_name , staff_position_'.$_SESSION['lang'].' AS staff_position_name FROM staff WHERE staff_active=1 ORDER BY staff_position';
    $result = $db->Execute($sql);
    $i = 0;
    $staff = '';
    while (!$result->EOF)
    {
        if(img_exists(APPPATH.'/images/staff',$result->fields['staff_img'])){
	    
	    $class = '';
	    if((($i++)%3)==0){
		$class = 'about_staff_first';
	    }
	    
            $staff .=<<<staff
		<div class="about_staff{$_SESSION['lang']} {$class}">
		    <img src="images/staff/{$result->fields['staff_img']}" alt="{$result->fields['staff_name']}" />
		    <p>
			{$result->fields['staff_name']}<br />
			{$result->fields['staff_position_name']}
		    </p>
		</div>
staff;
        }
        $result->MoveNext();
    }
    $result->Close();
?>
            <div id="about_left">
		<h2 class="h2_1"><?php echo _l('About Us'); ?></h2>
		<p class="p_1">
		    <?php echo _l('about-us-detail'); ?>
		</p>
		
		<h2 class="h2_2"><?php echo _l('Our Team'); ?></h2>
		<h3 class="h3_1"><?php echo _l('Strategic Planning'); ?></h3>
		<p class="p_2">
		    <?php echo _l('about-us-ourteam-strategic-planning'); ?>
		</p>
		
		<h3 class="h3_1"><?php echo _l('Creative Department'); ?></h3>
		<p class="p_2">
		    <?php echo _l('about-us-ourteam-creative-department'); ?>
		</p>
		
		<h3 class="h3_1"><?php echo _l('Account Management'); ?></h3>
		<p class="p_2">
		    <?php echo _l('about-us-ourteam-account-management'); ?>
		</p>
		
		<div id="about_staff">
		    
		    <?php echo $staff; ?>
		    
		</div>
	    </div>
	    <div id="about_right">
		<h3 class="h3_1"><?php echo _l('The Difference'); ?></h3>
		<div class="img">
		    <img src="images/about_right.jpg" />
		</div>
		<div class="text">
		   <?php echo _l('about-us-detail'); ?>
		</div>
		<div class="clear">&nbsp;</div>
		
		<h3 class="h3_1 h3_2"><?php echo _l('Mission'); ?></h3>
		<div class="img">
		    <img src="images/about_right.jpg" />
		</div>
		<div class="text">
		    <?php echo _l('about-us-detail'); ?>
		</div>
		<div class="clear">&nbsp;</div>
		
		<h3 class="h3_1 h3_2"><?php echo _l('Position'); ?></h3>
		<div class="img">
		    <img src="images/about_right.jpg" />
		</div>
		<div class="text">
		    <?php echo _l('about-us-detail'); ?>
		</div>
		<div class="clear">&nbsp;</div>
		
		
	    </div>
	    <div class="clear">&nbsp;</div>
<?php
    include('footer.php');
?> 